//
//  WWDataParser.h
//  WangLottery
//
//  Created by 黄修勇 on 12-9-11.
//
//

#import <Foundation/Foundation.h>

@interface WWDataParser : NSObject

-(NSDictionary *)dicForResult:(NSDictionary *)dic;

-(NSDictionary *)simpleResultForString:(NSString *)string;

-(NSDictionary *)simpleResultForString:(NSString *)string keyArray:(NSArray *)keyArray;

-(NSArray *)resultArrayByKeyArray:(NSArray *)keyArray dataArray:(NSArray *)data;

-(NSArray *)resultArrayByKeyArray:(NSArray *)keyArray dataModel:(id)model;

-(NSDictionary *)resultDicByKeyArray:(NSArray *)keyArray dataModel:(id)model;

-(NSDictionary *)resultDicByKeyArray:(NSArray *)keyArray dataModel:(id)model infoKeyArray:(NSArray *)infoKeyArray;

-(NSDictionary *)resultDicByKeyArray:(NSArray *)keyArray string:(NSString *)string;

-(NSDictionary *)resultDicByKeyArray:(NSArray *)keyArray string:(NSString *)string infoKeyArray:(NSArray *)infoKeyArray;

@end


@interface NSString (WWDataParser)

-(id)parserData;

@end


@interface WWDataModel:NSObject

@property (nonatomic,retain)NSString *infoString;
@property (nonatomic,retain)NSArray *dataArray;

@end